home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / dcom / modems-part1 / 544 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.1 KB  |  62 lines

  1. Newsgroups: comp.dcom.modems
  2. Path: news.3do.com!ntg!dplatt
  3. From: dplatt@ntg.com (Dave Platt)
  4. Subject: Re: Strange USR Reason Codes for Disconnects
  5. Message-ID: <1996Jan5.203347.1067@3do.com>
  6. Sender: news@3do.com (USENET news account)
  7. Organization: The 3DO Company Inc., Redwood City CA
  8. References: <4c77c7$qd5@shts.seed.net.tw> <4cai3r$8t2@lurch.sccsi.com> <4cck0p$dao@sol.towson.edu>
  9. Date: Fri, 5 Jan 1996 20:33:47 GMT
  10.  
  11. >I have a similar disconnect problem with a USR Mac&Fax sportster 
  12. >connected at 14.4.  I'm on a dial-up shell, and the unix box starts 
  13. >displaying a long file (like when I 'cat' a file) , partway thru the file 
  14. >I lose the carrier.  I need to know how to figure out why - I would guess 
  15. >either I'm overflowing an input buffer, or there is a character 
  16. >interpreted as 'hangup' which I will need to filter out.  It happens when 
  17. >I am just viewing a scroll, or if capturing the screen as it scrolls by.
  18.  
  19. This can happen if [1] the Mac terminal emulation program is configured
  20. for "hardware handshaking" or "hardware flow control", and [2] the
  21. serial port cable connects the Mac's HSKO handshake-output pin to the
  22. modem's DTR pin (instead of, or as well as to the RTS pin), and [3] the
  23. modem is configured with &D2 (normal DTR operations).
  24.  
  25. What happens in this case:  if the Mac terminal emulation program can't
  26. display data as fast as it arrives, the program's serial buffer (and the
  27. Mac serial-port buffer) fill up.  The Mac serial driver turns off the
  28. HSKO output, to tell the modem to temporarily stop sending data.  The
  29. HSKO output goes to DTR (data terminal ready), and when DTR is
  30. deasserted and &D2 is specified, the modem "thinks" that you've quit
  31. from your terminal emulation program, and hangs up the line.
  32.  
  33. One of the shortcoming of the Mac serial port is that it has only one
  34. handshake output, which can be used for hangup control (DTR), or receive
  35. flow control (RTS), but not both at once.  Similarly, it has only one
  36. handshake input, which can be used for either carrier detection (CD) or
  37. transmit flow control (CTS) but not both (and you have to switch serial
  38. cables to change the assignment).
  39.  
  40. In short:  if you want to use hardware flow control, you should specify
  41. AT&D0&H1 (enable hardware flow control on the transmit side, override
  42. the DTR signal).  If you do this, you will NOT be able to hang up the
  43. modem by quitting from your terminal emulator - you must send the
  44. pause/+++/pause/ATH0 sequence to force the modem on-hook.
  45.  
  46. There are two alternatives.  One is to use software (XON/XOFF) flow
  47. control... AT&D2&H0&I2, and specify software flow control in your
  48. terminal emulator.  This has the disadvantage of making it impossible
  49. for you to transmit XON and XOFF characters through to the system at the
  50. far end (GNU Emacs users will have difficulties).  The other is to use
  51. no flow control at all (disable receive-data flow control in your
  52. terminal emulator), and accept overruns if the far end transmits too
  53. quickly (or use "more" to pace the transmission).
  54.  
  55.  
  56.  
  57. -- 
  58. Dave Platt    dplatt@3do.com
  59.       USNAIL: The 3DO Company, Systems Software group
  60.               600 Galveston Drive
  61.               Redwood City, CA  94063
  62.